home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 747 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  951 b 

  1. Path: news.cs.hope.edu!vnopstal
  2. From: vnopstal@cs.hope.edu (Michael Van Opstall)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Operator Overloading
  5. Date: 6 Jan 1996 19:54:37 GMT
  6. Organization: Hope College
  7. Distribution: world
  8. Message-ID: <4cmk1t$kd7@news.cs.hope.edu>
  9. References: <4chdhb$g64@news.cs.hope.edu> <ENNO.96Jan5211810@kitz.inferenzsysteme.informatik.th-darmstadt.de>
  10. NNTP-Posting-Host: smaug.cs.hope.edu
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Let me follow up on my own thread here.
  14.  
  15. OK, != doesn't have to be overloaded, but +=, -=, *=, /= do, and they would
  16. have to be member functions, like =. I have a better understanding of streams
  17. now, so overloading << is not a problem, but how about >>. Overloading it
  18. would be a void function, right? or do I have to do a return *this or something
  19. like with =? Do I have to return the istream itself?
  20.  
  21. --
  22. Michael A. Van Opstall  --  vnopstal@cs.hope.edu
  23. http://www.cs.hope.edu/~vnopstal/deal.html - try it
  24.